package cn.job.j2

import scala.beans.BeanProperty
import scala.util.Random

class Computer {

  @BeanProperty
  var name: String = _

  @BeanProperty
  var score: Int = 0

  /**
   * 机器人出拳
   * @return
   */
  def showFist(): Int = {
    val game = new Game()
    var r = Random.nextInt(game.fist.keys.max)
    if (r == 0) {
      r = 1
    }
    r
  }


}
